﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class ToaThuocBUS
    {
        public static DataTable LayDanhSachToaThuoc()
        {
            return ToaThuocDAO.LayDanhSachToaThuoc();
        }

        public static int ThemToaThuoc(ToaThuocDTO obj)
        {
            return ToaThuocDAO.ThemToaThuoc(obj);
        }

        public static void XoaToaThuoc(int maToaThuoc)
        {
            ToaThuocDAO.XoaToaThuoc(maToaThuoc);
        }

        public static void SuaToaThuoc(ToaThuocDTO obj)
        {
            ToaThuocDAO.SuaToaThuoc(obj);
        }

        public static ToaThuocDTO LayThongTinToaThuocTheoToaThuoc(int maToaThuoc)
        {
            return ToaThuocDAO.LayThongTinToaThuocTheoMaToaThuoc(maToaThuoc);
        }
    }
}
